import request from '@/utils/request'
// 查询全部
export function getList(params) {
  return request({
    url: '/consultations/list',
    method: 'get',
    params
  })
}
// 删除单个
export function delone(id) {
  return request({
    url: '/consultations/del',
    method: 'get',
    params: id
  })
}
// 添加
export function add(data) {
  return request({
    url: '/consultations/add',
    method: 'post',
    data
  })
}
// 修改
export function edit(data) {
  console.log(data)
  return request({
    url: '/consultations/edit',
    method: 'post',
    data
  })
}
// 问诊记录查询
export function re(params){
  return request({
    url: '/consultationrf/list',
    method: 'get',
    params
  })
}
// 医生列表查询
export function doctorList(params){
  return request({
    url: '/consultations/doctorList',
    method: 'get',
    params
  })
}
